import request from '@/utils/request'
import { HTTP_METHOD } from '@/utils/http'

const base_url = '/index'

/**
 * @export 获取代办事项
 * @param {*} per_page 页面数据
 * @param {*} page 页面索引
 * @param {*} tab_num 1 代办 2 抄送 3 所有
 * @return {*}
 */
export function getTodoList (per_page = 10, page = 1, name__icontains, tab_num = 3) {
  return request({
    url: `${base_url}/todo`,
    method: HTTP_METHOD.GET,
    params: {
      per_page, page, name__icontains, tab_num,
    },
  })
}

export function datas () {}
